{*
# $Id: head.fs 104 2010-04-02 09:08:46Z Administrator $
# $Revision: 104 $
# $Author: Administrator $
# $Date: 2010-04-02 17:08:46 +0800 (星期五, 02 四月 2010) $
*}{if $site.dtd=="x1.1"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{elseif $site.dtd=="x1.1ml"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{elseif $site.dtd=="x1.0mp"}
<?xml version="1.0" {if $site.charset}encoding="{$site.charset}"{/if}?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
<html>
{elseif $site.dtd=="x1.0t"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{elseif $site.dtd=="x1.0s"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{elseif $site.dtd=="x1.0f"}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{elseif $site.dtd=="4.01f"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
{elseif $site.dtd=="4.01t"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
{elseif $site.dtd=="4.01s"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
{elseif $site.dtd=="4.0t"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
{elseif $site.dtd=="4.0s"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
{elseif $site.dtd=="4.0f"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/frameset.dtd">
<html>
{elseif $site.dtd=="3.2"}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
{elseif $site.dtd=="2"}
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
{else}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{/if}
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset={$site.charset}" {$site.tagclose}>
		<title>{$site.DocTitle}{if $site.power} Powered by{$site.power}{/if}</title>
{if $site.keywords}
		<meta name="keywords" content="{$site.keywords}" {$site.tagclose}>
{/if}{if $site.description}
		<meta name="description" content="{$site.description}" {$site.tagclose}>
{/if}
		<meta name="generator" content="fastlib{$smarty.const.__FASTVER__}" {$site.tagclose}>
{if $site.ico && $site.dtd!="x1.1mp" }
		<link rel="shortcut icon" href="{$site.ico}" {if $site.dtd!="2" and $site.dtd!="3.2"}type="image/x-icon" {/if}{$site.tagclose}>
{/if}
{if $site.dico && ($site.dtd!="x1.1mp" && $site.dtd!="3.2" && $site.dtd!="2")}
		<link rel="icon" href="{$site.dico}" type="image/gif" {$site.tagclose}>
{/if}
{section name=loop loop=$CSS step=1}
{if $CSS[loop].test}<!--[if {$CSS[loop].test}]>{/if}		<link rel="stylesheet" {if $site.dtd!="2" && $site.dtd!="3.2"}type="text/css" {/if}href="{$CSS[loop].src}"{if $CSS[loop].media} media="{$CSS[loop].media}"{/if}{if $CSS[loop].title} title="{$CSS[loop].title}"{/if} {$site.tagclose}>{if $CSS[loop].test}<![endif]-->{/if}		
{/section}
{section name=loop loop=$RSS step=1}{if $site.dtd!="x1.1mp" && $site.dtd!="3.2" && $site.dtd!="2"}
		<link rel="alternate" type="{$RSS[loop].type|default:'application/rss+xml'}" href="{$RSS[loop].src}"{if $RSS[loop].title} title="{$RSS[loop].title}"{/if} {$site.tagclose}>
{/if}{/section}
{section name=loop loop=$JS step=1}{if $site.dtd!="x1.1mp" && $site.dtd!="3.2" && $site.dtd!="2"}
	<script  type="text/{$JS[loop].type|default:'javascript'}" src="{$JS[loop].src}" ></script>
{/if}{/section}
{section name=loop loop=$FETCH step=1}{if $FETCH[loop].SYS or $FETCH[loop].sys}
{fetch file=$smarty.const.__FASTTPL__|cat:$FETCH[loop].src}
{else}
{fetch file=$FETCH[loop].src}
{/if}{/section}
{section name=loop loop=$INCLUDE step=1}{if $INCLUDE[loop].SYS or $INCLUDE[loop].sys}
{include file=$smarty.const.__FASTTPL__|cat:$INCLUDE[loop].src }
{else}
{include file=$INCLUDE[loop].src }
{/if}{/section}
	</head>
{if $site.dtd!="4.0f" && $site.dtd!="4.01f" &&  $site.dtd!="1.0f" }
	<body {$bodyattr}>
{/if}